var app = new Vue({
    el: '#app',
    data: {
        name: '',
        selValue:'',
        role:'1',
        datas:[],
        dataList:[
            {name:'王充',value:'wc'},
            {name:'梁潇',value:'lx'},
            {name:'老王',value:'lw'},
        ]
    },
    filters: {
        rateFilter: function (value) {
            return math.round(value, 2)
        }
    },
    mounted: function () {
        this.getData();
    },
    methods: {
        reverseMessage: function () {
            ArtDlg.showArtDlg('that is right');
        },
        getData: function () {
            var _this = this;
            $.ajax({
                type: "post",
                dataType: "json",
                contentType : 'application/json;charset=UTF-8',
                traditional: true,
                url: 'http://127.0.0.1:8080/lx/getUserListPage',
                data: JSON.stringify({
                    page:0,
                    size:100
                }),
                success: function (data) {
                    console.log(data);
                    if (data.code === 0) {
                        ArtDlg.showArtDlg('获取成功');
                        _this.datas=data.data.content;
                    } else {
                        ArtDlg.showArtDlg(data.msg);
                    }
                }
            });
        },
    }
})
